-- GENERATED SPELL FOR [Illidari Shocktrooper] --


function spell0_19802(pUnit, Event) --@Charge,n/a--
pUnit:FullCastSpellOnTarget(22120,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19802', 655, 1)
end

function spell1_19802(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15496,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19802', 572, 1)
end

function Sorts_19802(pUnit, Event)
local choix_sorts_19802 = math.random(0, 1)
if choix_sorts_19802 == 0 then
pUnit:RegisterEvent('spell0_19802', 1, 1)
end
if choix_sorts_19802 == 1 then
pUnit:RegisterEvent('spell1_19802', 1, 1)
end
end

function mob19802_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19802', math.random(1500, 3000), 1)
end

function mob19802_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19802_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19802_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19802, 1, 'mob19802_Action')
RegisterUnitEvent(19802, 2, 'mob19802_Leave')
RegisterUnitEvent(19802, 3, 'mob19802_Kill')
RegisterUnitEvent(19802, 4, 'mob19802_Die')
